//package com.charley.icloud.admin.security;
//
//import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
//import org.springframework.security.core.GrantedAuthority;
//
//import java.util.Collection;
//
///**
// * 自定义令牌对象
// *   对令牌信息的简单封装，用来作为认证和授权的信任凭证，其中的token信息由JWT负责生成
// */
//public class JwtAuthenticationToken extends UsernamePasswordAuthenticationToken {
//
//	private static final long serialVersionUID = 1L;
//
//	private String token;
//
//	/**
//	 * @param principal 对应username | account
//	 * @param credentials 凭据 对应password
//	 * */
//    public JwtAuthenticationToken(Object principal, Object credentials){
//        super(principal, credentials);
//    }
//
//    public JwtAuthenticationToken(Object principal, Object credentials, String token){
//    	super(principal, credentials);
//    	this.token = token;
//    }
//
//    public JwtAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities, String token) {
//    	super(principal, credentials, authorities);
//    	this.token = token;
//    }
//
//	public String getToken() {
//		return token;
//	}
//
//	public void setToken(String token) {
//		this.token = token;
//	}
//
//	public static long getSerialversionuid() {
//		return serialVersionUID;
//	}
//
//}
